﻿using System;
using GC_FFW.SoccerfameParser.Abstractions.Helpers.Validators;

namespace GC_FFW.SoccerfameParser.Abstractions.Managers
{
	public abstract class WebPageBaseManager
	{
		#region Variables

		protected UrlBaseValidator UrlValidator { get; private set; }

		#endregion

		#region Constructors

		protected WebPageBaseManager(UrlBaseValidator urlValidator)
		{
			if (urlValidator == null)
				throw new ArgumentNullException(string.Format("url validator is null"));
			UrlValidator = urlValidator;
		}

		#endregion

		#region Public Methods

		public abstract string GetWebPageHtmlMarkup(string pageUrl);

		#endregion
	}
}
